﻿<storeControls:StoreApplicationPage
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:storeControls="clr-namespace:Store.WP7.Controls;assembly=Store.WP7.Controls"
    xmlns:behaviors="clr-namespace:Store.WP7.Framework.Interactions;assembly=Store.WP7.Framework"
    xmlns:i="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity"
    xmlns:toolkit="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls.Toolkit"
    xmlns:controls="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls" 
    x:Class="Store.WP7.Views.AboutView"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    SupportedOrientations="Portrait" Orientation="Portrait"
    mc:Ignorable="d" d:DesignHeight="768" d:DesignWidth="480">

    <i:Interaction.Behaviors>
        <behaviors:SystrayBehavior SystrayOpacity="0.5"
                                   IsBusy="{Binding IsBusy}"
                                   BusyMessage="{Binding BusyMessage}" />
    </i:Interaction.Behaviors>

    <toolkit:TransitionService.NavigationInTransition>
        <toolkit:NavigationInTransition>
            <toolkit:NavigationInTransition.Backward>
                <toolkit:TurnstileTransition Mode="BackwardIn" />
            </toolkit:NavigationInTransition.Backward>
            <toolkit:NavigationInTransition.Forward>
                <toolkit:TurnstileTransition Mode="ForwardIn" />
            </toolkit:NavigationInTransition.Forward>
        </toolkit:NavigationInTransition>
    </toolkit:TransitionService.NavigationInTransition>
    <toolkit:TransitionService.NavigationOutTransition>
        <toolkit:NavigationOutTransition>
            <toolkit:NavigationOutTransition.Backward>
                <toolkit:TurnstileTransition Mode="BackwardOut" />
            </toolkit:NavigationOutTransition.Backward>
            <toolkit:NavigationOutTransition.Forward>
                <toolkit:TurnstileTransition Mode="ForwardOut" />
            </toolkit:NavigationOutTransition.Forward>
        </toolkit:NavigationOutTransition>
    </toolkit:TransitionService.NavigationOutTransition>

    <!--LayoutRoot is the root grid where all page content is placed-->
    <Grid x:Name="LayoutRoot" Background="Transparent">
        <Grid.RowDefinitions>
        	<RowDefinition Height="Auto"/>
        	<RowDefinition Height="*"/>
        </Grid.RowDefinitions>

        <Image Stretch="None"
        	Source="/Assets/Images/PageBackground.png"
        	VerticalAlignment="Top" />

    	<controls:Pivot VerticalAlignment="Top" Margin="12,100,12,12">
    		<controls:PivotItem Header="à propos">
    			<Grid x:Name="AboutContent"
                      Grid.Row="1"
                      Margin="12,0,12,0"
                      HorizontalAlignment="Center">
                    <Grid.RowDefinitions>
                        <RowDefinition Height="Auto" />
                        <RowDefinition Height="20" />
                        <RowDefinition Height="Auto" />
                        <RowDefinition Height="20" />
                        <RowDefinition Height="Auto" />
                        <RowDefinition Height="20" />
                        <RowDefinition Height="Auto" />
                        <RowDefinition Height="20" />
                        <RowDefinition Height="Auto" />
                        <RowDefinition Height="20" />
                        <RowDefinition Height="Auto" />
                    </Grid.RowDefinitions>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="Auto" />
                        <ColumnDefinition Width="10" />
                        <ColumnDefinition />
                    </Grid.ColumnDefinitions>

                    <TextBlock Grid.Column="0"
                               Grid.Row="0"
                               Text="VERSION"/>
                    <TextBlock Grid.Column="2"
                               Grid.Row="0"
                               Text="{Binding Version}" />

                    <TextBlock Grid.Column="0"
                               Grid.Row="8"
                               Text="CREDITS" />
                    <StackPanel Grid.Column="2"
                                Grid.Row="8">
                        <HyperlinkButton NavigateUri="http://coding4fun.codeplex.com/"
                                         Content="Coding4Fun" />
						<HyperlinkButton NavigateUri="http://nroute.codeplex.com/"
                                         Content="nRoute Toolkit" />
                    </StackPanel>

                </Grid>
    		</controls:PivotItem>
    		<controls:PivotItem Header="auteurs">
    			<Grid x:Name="AuteursContent"
    				Margin="24,0"
    				HorizontalAlignment="Center">
    				<Grid.RowDefinitions>
    					<RowDefinition Height="Auto" />
    					<RowDefinition Height="12" />
    					<RowDefinition Height="Auto" />
    					<RowDefinition Height="12" />
    					<RowDefinition Height="Auto" />
    					<RowDefinition Height="32" />
    					<RowDefinition Height="Auto" />
    					<RowDefinition Height="12" />
    					<RowDefinition Height="Auto" />
    					<RowDefinition Height="12" />
    					<RowDefinition Height="Auto" />
						<RowDefinition Height="32" />
    					<RowDefinition Height="Auto" />
    					<RowDefinition Height="12" />
    					<RowDefinition Height="Auto" />
    					<RowDefinition Height="12" />
    					<RowDefinition Height="Auto" />
    				</Grid.RowDefinitions>
    				<Grid.ColumnDefinitions>
    					<ColumnDefinition Width="Auto" />
    					<ColumnDefinition Width="10" />
    					<ColumnDefinition />
    				</Grid.ColumnDefinitions>

    				<Border x:Name="Cyril" BorderThickness="1" Grid.RowSpan="5" Grid.ColumnSpan="3" Background="{StaticResource ItemBackgroundBrush}" Margin="-12,-6"/>

    				<TextBlock Grid.Column="0"
    					Text="AUTEUR" HorizontalAlignment="Right" />
    				<TextBlock Grid.Column="2"
    					Text="Cyril Cathala" Margin="12,0,0,0" />

    				<TextBlock Grid.Column="0"
    					Grid.Row="2"
    					Text="BLOG" HorizontalAlignment="Right" />
    				<HyperlinkButton Grid.Column="2"
    					Grid.Row="2"
    					NavigateUri="http://cyril.cathala.org"
    					Content="http://cyril.cathala.org" HorizontalContentAlignment="Left" FontSize="21.333" />

    				<TextBlock Grid.Column="0"
    					Grid.Row="4"
    					Text="TWITTER" HorizontalAlignment="Right" />
    				<HyperlinkButton Grid.Column="2"
    					Grid.Row="4"
    					NavigateUri="http://twitter.com/CyrilCathala"
    					Content="@CyrilCathala" HorizontalAlignment="Left" />
    				<Border x:Name="Julien" BorderThickness="1" Grid.RowSpan="5" Grid.ColumnSpan="3" Background="{StaticResource ItemBackgroundBrush}" Grid.Row="6" Margin="-12,-6"/>
    				<TextBlock Grid.Column="0"
    					Text="AUTEUR" Grid.Row="6" HorizontalAlignment="Right" />
    				<TextBlock Grid.Column="2"
    					Text="Julien Corioland" Margin="12,0,0,0" Grid.Row="6" />
    				<TextBlock Grid.Column="0"
    					Grid.Row="8"
    					Text="BLOG" Margin="0,-1,0,1" HorizontalAlignment="Right" />
    				<HyperlinkButton Grid.Column="2"
    					Grid.Row="8"
    					NavigateUri="http://www.juliencorioland.net"
    					Content="http://www.juliencorioland.net" HorizontalContentAlignment="Left" FontSize="21.333" />
    				<TextBlock Grid.Column="0"
    					Grid.Row="10"
    					Text="TWITTER" HorizontalAlignment="Right" />
    				<HyperlinkButton Grid.Column="2"
    					Grid.Row="10"
    					NavigateUri="http://twitter.com/Beedoo"
    					Content="@Beedoo" HorizontalAlignment="Left" />
    				<Border x:Name="David" BorderThickness="1" Grid.RowSpan="5" Grid.ColumnSpan="3" Background="{StaticResource ItemBackgroundBrush}" Grid.Row="12" Margin="-12,-6"/>
    				<TextBlock Grid.Column="0"
    					Text="AUTEUR" Grid.Row="12" HorizontalAlignment="Right" />
    				<TextBlock Grid.Column="2"
    					Text="David Poulin" Margin="12,0,0,0" Grid.Row="12" />
    				<TextBlock Grid.Column="0"
    					Grid.Row="14"
    					Text="BLOG" Margin="0,-1,0,1" HorizontalAlignment="Right" />
    				<HyperlinkButton Grid.Column="2"
    					Grid.Row="14"
    					NavigateUri="http://www.davidpoulin.com"
    					Content="http://www.davidpoulin.com" HorizontalContentAlignment="Left" FontSize="21.333" />
    				<TextBlock Grid.Column="0"
    					Grid.Row="16"
    					Text="TWITTER" HorizontalAlignment="Right" />
    				<HyperlinkButton Grid.Column="2"
    					Grid.Row="16"
    					NavigateUri="http://twitter.com/Danuz"
    					Content="@Danuz" HorizontalAlignment="Left" />
						
    			</Grid>
    		</controls:PivotItem>
			<controls:PivotItem Header="changelog">
    			<Grid/>
    		</controls:PivotItem>
    	</controls:Pivot>
    </Grid>
 
    <!--Sample code showing usage of ApplicationBar-->
    <!--<phone:PhoneApplicationPage.ApplicationBar>
        <shell:ApplicationBar IsVisible="True" IsMenuEnabled="True">
            <shell:ApplicationBarIconButton IconUri="/Images/appbar_button1.png" Text="Button 1"/>
            <shell:ApplicationBarIconButton IconUri="/Images/appbar_button2.png" Text="Button 2"/>
            <shell:ApplicationBar.MenuItems>
                <shell:ApplicationBarMenuItem Text="MenuItem 1"/>
                <shell:ApplicationBarMenuItem Text="MenuItem 2"/>
            </shell:ApplicationBar.MenuItems>
        </shell:ApplicationBar>
    </phone:PhoneApplicationPage.ApplicationBar>-->

</storeControls:StoreApplicationPage>
